const local = {
    set(key, val) {
        localStorage.setItem(key, JSON.stringify(val))
    },
    get(val) {
        return JSON.parse(localStorage.getItem(val))
    },
    remove(key) {
        localStorage.removeItem(key)
    },
    clear() {
        localStorage.clear()
    }
}
export default local